import "reflect-metadata";
import React from 'react'
import { createRoot } from 'react-dom/client';
import zhCn from 'antd-mobile/es/locales/zh-CN'
import ConfigProvider from 'antd-mobile/es/components/config-provider';
import {
  RouterProvider,
} from "react-router-dom";
// colorui
import "./web/style/animation.css";
import "./web/style/icon.css";
import "./web/style/main.css";
// unocss
import 'uno.css';
import { router } from './web/router';
import { log, onAutoxJsBridgeReady } from './web/util';
import { bootstrap } from './web/bootstrap';
try {
  const root = createRoot(document.getElementById('root'));
  bootstrap();
  root.render(<ConfigProvider locale={zhCn}>
    <React.StrictMode>
      <RouterProvider router={router} />
    </React.StrictMode>
  </ConfigProvider>);
  onAutoxJsBridgeReady(() => {
    log(`onAutoxJsBridgeReady`)
  })
} catch (e) {
  log(e.message)
}